package com.yimixian.app.order;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.FrameLayout;

import com.yimixian.app.R;
import com.yimixian.app.model.QQWalletRespsonse;
import com.yimixian.app.util.Strings;

public class OrderPayActivity extends AbstractOrderActivity2 {

    String payMethod;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order_pay);

        payMethod = getIntent().getStringExtra("payMethod");
        mPaymentId = getIntent().getStringExtra("mPaymentId");

        if(Strings.isNullOrEmpty(payMethod) || Strings.isNullOrEmpty(mPaymentId)){
            onBackPressed();
        }else{
            paymentButtonClicked(payMethod);
        }
    }

}
